package com.xs;

import lombok.Data;

/**
 * @program: paxos-java-demo
 * @description 投票者许可
 * @author: wzx
 * @create: 2021-07-08 19:01
 **/

public class Promise {
    private boolean ack; //应答状态
    private Proposal proposal; //提案内容

    public Promise(boolean ack,Proposal proposal)
    {
        this.ack=ack;
        this.proposal=proposal;
    }

    public boolean isAck(){
        return ack;
    }

    public Proposal getProposal(){
        return this.proposal;
    }


}
